# encoding: utf-8
from setuptools import setup, find_packages
from glob import glob
import os
isfile = os.path.isfile

Name = "Tevisa"
name=Name.lower()
version = "0.5"

long_desc = """
%s converts reStructuredText_ documents into pdf presentations using the Powerdot_ LaTeX_ class.

The name *%s* comes from 'Tévisa' which means 'to show' in the `Myéné language`_

.. _reStructuredText: http://en.wikipedia.org/wiki/ReStructuredText
.. _Powerdot: http://www.ctan.org/tex-archive/help/Catalogue/entries/powerdot.html
.. _LaTeX: http://en.wikipedia.org/wiki/LaTeX LaTeX
.. _Myéné language: http://en.wikipedia.org/wiki/Myene_language
"""%(Name,Name)

docdirbase="share/doc/%s"%name
examples = filter(isfile, glob('examples/*.txt')) + \
            filter(isfile, glob('examples/*.tex'))
data = [(docdirbase, examples)]
setup(
    name = name,
    version = version,
    packages = find_packages(),
    entry_points = {
        'console_scripts': [
            '%s = %s:main'%(name,name)
        ],
    },
    install_requires = ['docutils>=0.4'],
    author = 'Nicolas Girard <nicolas@girard.name>',
    description = 'Creates high quality pdf presentations from reStructuredText documents',
    long_description = long_desc,
    license = 'New BSD',
    keywords = 'presentation slideshow handout reStructuredText',
    url = 'http://%s.googlecode.com/'%name,
    data_files = data
)
